﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using VIA.Integration;
using VIA.Integration.Domain;
using VIA.Presentation;
using VIA.Presentation.Contracts;
using VIA.Project.Domain.Devices;
using VIA.Project.Presentation.ViewModel.Inspection;

namespace VIA.Project.Presentation.View.Inspection
{
    /// <summary>
    /// VirtualCameraEditorView.xaml 的交互逻辑
    /// </summary>
    [View(typeof(IVirtualCameraEditorView))]
    public partial class VirtualCameraEditorView : IVirtualCameraEditorView
    {
        public VirtualCameraEditorView()
        {
            InitializeComponent();
        }

        public IVirtualCamera Camera
        {
            get => this.GetViewModel<VirtualCameraEditorViewModel>().Camera;
            set => this.GetViewModel<VirtualCameraEditorViewModel>().Camera = value;
        }

        public IObject EditObject
        {
            get => this.GetViewModel<VirtualCameraEditorViewModel>().EditObject;
            set => this.GetViewModel<VirtualCameraEditorViewModel>().EditObject = value;
        }
    }
}
